<?php
/* SVN FILE: $Id$ */

/**
 * Enter description here ....
 *
 * @filesource
 * @copyright    Copyright (c) 2006, .
 * @link
 * @package
 * @subpackage
 * @since
 * @version      $Revision$
 * @modifiedby   $LastChangedBy$
 * @lastmodified $Date$
 * @license      http://www.opensource.org/licenses/mit-license.php The MIT License
 */

/**
 * Person
 *
 * Enter description here...
 *
 * @package
 * @subpackage
 * @since
 */
class Person extends AppModel
{
    var $name = 'Person';
    
    var $displayField = 'last_name';

    var $belongsTo = array ('Institution' =>
    								array('className' => 'Institution'
    								),
							'LmsRole' =>
    								array('className' => 'LmsRole'
    								), 
							 'Role' =>
    								array('className' => 'Role'
    								)
    					);

    var $hasMany = array ('Enrollment' =>
    								array('className' => 'Enrollment'
    								),
    						'PersonComment' =>
    								array('className' => 'PersonComment'
    								),
    						'OfferingComment' =>
    								array('className' => 'OfferingComment'
    								), 
    						'CourseLog' =>
    								array('className' => 'CourseLog'
    								), 
    						'EnrollmentLog' =>
    								array('className' => 'EnrollmentLog'
    								), 
    						'OfferingLog' =>
    								array('className' => 'OfferingLog'
    								), 
    						'PersonLog' =>
    								array('className' => 'PersonLog'
    								), 
    						'ProfileLog' =>
    								array('className' => 'PersonLog',
										'foreignKey' => 'profile_id'
    								),
    						'SemesterLog' =>
    								array('className' => 'SemesterLog'
    								)
    					);
	
}

?>